package com.xiaoyu.lanling.feature.board.data

import com.xiaoyu.base.net.RequestCreator
import com.xiaoyu.lanling.common.config.HttpConfig
import com.xiaoyu.lanling.event.board.MainFateBoardTop3Event

object BoardDataCreator {

    private const val GODDESS_TYPE = "girl"
    private const val RICH_TYPE = "rich"

    private const val WEEK_TYPE = "week"
    private const val SUM_TYPE = "all"

    fun createGoddessWeekBoardListData(requestTag: Any) =
            BoardListViewData(requestTag, HttpConfig.LANLING_GET_GODDESS_BOARD_LIST, GODDESS_TYPE, WEEK_TYPE)

    fun createGoddessSummedBoardListData(requestTag: Any) =
            BoardListViewData(requestTag, HttpConfig.LANLING_GET_GODDESS_BOARD_LIST, GODDESS_TYPE, SUM_TYPE)

    fun createRichWeekBoardListData(requestTag: Any) =
            BoardListViewData(requestTag, HttpConfig.LANLING_GET_GODDESS_BOARD_LIST, RICH_TYPE, WEEK_TYPE)

    fun createRichSummedBoardListData(requestTag: Any) =
            BoardListViewData(requestTag, HttpConfig.LANLING_GET_GODDESS_BOARD_LIST, RICH_TYPE, SUM_TYPE)

    fun getBoardTop3(requestTag: Any) {
        RequestCreator.create<MainFateBoardTop3Event>(requestTag, MainFateBoardTop3Event::class.java)
                .setRequestUrl(HttpConfig.LANLING_GET_BOARD_TOP3)
                .enqueue()
    }
}